package com.company.stack;

/**
 * @author shenhan
 * @create 2020/1/28 16:04
 * @description
 */
public class ArrayStackDemo {
    public static void main(String[] args) {
        ArrayStack stack = new ArrayStack(6);
        stack.push(1);
        stack.push(2);
        stack.push(6);
        stack.push(6);
        stack.push(8);
        stack.push(8);
        stack.push(8);
        System.out.println("------------");
        stack.list();
        System.out.println("------------");
        stack.pop();
        stack.pop();
        stack.pop();
        stack.pop();
        stack.pop();
        stack.pop();
        stack.list();
    }
}
